//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { WechatCloud, WechatCloudResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooWechatCloudList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<WechatCloudResponse>(`/uctoo/wechat_cloud/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooWechatCloud = async (id: string) => {
  return requestClient.get<WechatCloud>(`/uctoo/wechat_cloud/${id}`);
};

export const adductooWechatCloud = async (data: Partial<WechatCloud>) => {
  return requestClient.post<WechatCloud>('/uctoo/wechat_cloud/add', data);
};

export const edituctooWechatCloud = async (data: Partial<WechatCloud>) => {
  return requestClient.post<WechatCloud>('/uctoo/wechat_cloud/edit', data);
};

export const deleteuctooWechatCloud = async (id: string) => {
  return requestClient.post<any>('/uctoo/wechat_cloud/del', { id });
};
